﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    class Magazine : Makulatura
    {
        public bool bonus { get; set; }
        public string dateOfRelease { get; set; }
        public int age { get; set; }
        public override string name
        {
            get
            {
                return (base.brend + " " + dateOfRelease);
            }
            set
            {
            }
        }
        public Magazine(bool bonus, string dateOfRelease, int age, int price, string brend, int size) : base()
        {
            this.bonus = bonus;
            this.dateOfRelease = dateOfRelease;
            this.age = age;
            this.price = price;
            this.brend = brend;
            this.size = size;
        }
        public override string ToString()
        {
            return this.name + "$" + this.brend + "$" + this.price + "$" + this.size + "$" + "bonus " + this.bonus + "$" + this.age + "$" + this.dateOfRelease + "\r\n";
        }
    }
}